<?php
session_start();
require '../nette/Nette/loader.php';
require '../db.php';
require '../localization/lang.php';
require '../core/core.sanitizer.php';
require '../core/core.security.php';
require '../core/core.time.php';
require '../visual/visual.tasks.php';

$login=new core_security;
if ($login->checklogin()=="OK") {

$time=new core_time;
$tasks=new visual_tasks($_SESSION['uid'],$_SESSION['date2']);
echo $time->totimedef($tasks->visual_tasks_lasttime());

}
?>